package com.kusen.village.raise.topic.impl;

import com.kusen.village.raise.entity.jsonbean.HopefulJson;
import com.kusen.village.raise.enums.TopicEnum;
import com.kusen.village.raise.topic.TopicInterface;
import com.kusen.village.raise.util.JsonUtil;

/**
 * @description: 处理iot topic类
 * @author: ghl
 * @create: 2021-10-13 11:23
 **/
public class IOTTopic implements TopicInterface {
    @Override
    public void handTopic(String topic, String jsonData) {
     if (TopicEnum.IOP_TOPIC.getTopic().equals(topic) ) {
         HopefulJson jsonDataFromHopeful = JsonUtil.getJsonDataFromHopeful(jsonData);
         System.out.println(jsonDataFromHopeful);
     }
    }
}
